﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Logging
{
    /// <summary>
    /// <see cref="TraceLogger"/>工厂
    /// </summary>
    [Serializable]
    public class TraceLoggerFactory : AbstractLoggerFactory
    {
        [SecuritySafeCritical]
        public override ILogger Create(string name)
        {
            return new TraceLogger(name);
        }

        [SecuritySafeCritical]
        public override ILogger Create(string name, LogLevel level)
        {
            return new TraceLogger(name, level);
        }
    }
}
